import {
    configureStore
} from "@reduxjs/toolkit"
import { useDispatch } from "react-redux";
// import auth from './slices/auth';
import trademark from "./slices/trademark";
import attr from "./slices/attr";
import category from './slices/category'
const store = configureStore({
    reducer:{
        // auth,
        trademark,
        attr,
        category
    }
})
// {auth:{}}
// 自定义hooks,提供dispatch
export type Tdispatch = typeof store.dispatch;
export const useAppDispatch = ()=> useDispatch<Tdispatch>();
export default store;